<app-input>
  <mat-form-field class="textInput">
    <mat-select
            placeholder="Policy"
            [(ngModel)]="type"
            (selectionChange)="changeType()">
      <mat-option *ngFor="let opt of types; let i = index" [value]="opt">
        {{ display[i] }}
      </mat-option>
    </mat-select>
    <mat-hint align="end">
      <app-hint></app-hint>
    </mat-hint>
  </mat-form-field>
</app-input>

<ng-container *ngIf="type === TYPE.DEFAULT">
 <app-default></app-default>
</ng-container>

<ng-container *ngIf="type === TYPE.GROOVY">
  <app-groovy></app-groovy>
</ng-container>
